#!/bin/sh

if [ $# -gt 0 ] ; then
	timer=$1
else
	timer="timer_file_1"
fi

for method in "./main_a -s" "./main_c -s" "./main_c -b"; do
	if [ -e "$(echo $method | cut -d' ' -f1)" ] ; then
		for file in archivos/*; do
			echo "$method $file" >> $timer 2>> $timer
			time -p $method $file >> $timer 2>> $timer
			echo >> $timer 2>> $timer
		done
	fi
done

